import { getRandomDateTime, getNowDate, getFeatureDate } from '../../../../utils'
import Mock from 'mockjs'
export const mailAccountMock = pageSize => {
  const result: any[] = []
  for (let i = 0; i < pageSize; i++) {
    result.push({
      id: i + 1,
      mail: Mock.mock('@email'),
      username: Mock.mock('@word'),
      password: Mock.mock('@word'),
      host: Mock.mock('@ip'),
      port: Mock.mock('@integer(1000, 10000)'),
      'sslEnable|1': true,
      creator: '1',
      create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
      updater: '',
      update_time: '',
      deleted: false,
      deleted_time: ''
    })
  }
  return result
}
